package com.google.code.virtualhockey.vhx.server.servlet.rest

/**
 * Indicates that there is a problem with the currently processed REST command.
 */
class RestCommandException( msg: String, cause: Throwable ) extends RuntimeException( msg, cause ) {

  def this( msg: String ) = this( msg, null )

  /**
   * Returns a list of additional JSON attributes that should be included into any error response which
   * is sent back to the client following a raise of this exception.
   */
  def getAdditionalResponseAttributes: List[String] = Nil
}
